Skip to main content

Roundness

Quantifies the deviation of an object's shape from a perfect circle.

🔎 ROI options and parameters of roundness accessor

Roundness is the measure of how closely the shape of an object approaches that of a mathematically perfect circle. To compute it the formula is this:

Roundness=4SurfaceπFeretDiameterMax2Roundness = \frac{4*Surface}{\pi * FeretDiameter_{Max}^2}

Where FeretDiameterMaxFeretDiameter_{Max} is the length of a maximum feret diameter.
Using roundness as a metric allows for consistent and objective comparisons between different shapes, facilitating research and analysis across various disciplines.

In ImageJS roundness is a ROI class accessor that returns a ratio:

const roundness = roi.roundness;